/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package aicue1.services;

import aicue1.beans.Item;
import aicue1.beans.Order;
import aicue1.singletons.ShippingItemsSingleton;
import java.util.TimerTask;

/**
 *
 * @author Thomas
 */
public class MovingTimerTask extends TimerTask
{
    Item item = null;
    public MovingTimerTask(Item item)
    {
        this.item = item;
    }

    @Override
    public void run()
    {
        ShippingItemsSingleton shippingItem = ShippingItemsSingleton.getInstance();
        shippingItem.moveShippingItem(item);
    }

}
